<template>
  <div id="data-view">
    <dv-full-screen-container>
      <div class="head">
        <div class="lft">
          <span class="sp1">{{ times }}</span>
          <br />
          <span class="sp2">{{ daysweek }}</span>
        </div>
        <h1>第十一事业部只能平台<strong>深圳基地</strong></h1>
        <div class="rgt">
          <span>切换基地</span>
        </div>
      </div>
      <div class="content">
        <div class="liftcontent">
          <div class="zhitonglv">
            <zhitonglv />
          </div>
          <div class="hpv">
            <hpv />
          </div>
          <div class="lizhichuqin">
            <lizhichuqin />
          </div>
        </div>
        <div class="middlecontent">
          <div class="statistical">
            <statistical />
          </div>
          <div class="xinzengdingdan">
            <xinzengdingdan />
          </div>
        </div>
        <div class="rightcontent">
          <div class="hanjierixiaxian">
            <hanjierixiaxian />
          </div>
          <div class="tuzhuangqianchuli">
            <tuzhuangqianchuli />
          </div>
          <div class="zongzhuangchuchengpinku">
            <zongzhuangchuchengpinku />
          </div>
        </div>
      </div>
    </dv-full-screen-container>
  </div>
</template>

<script>
import zhitonglv from "./shenzhen1/zhitonglv";
import hpv from "./shenzhen1/hpv";
import lizhichuqin from "./shenzhen1/lizhichuqin";
import hanjierixiaxian from "./shenzhen1/hanjierixiaxian";
import tuzhuangqianchuli from "./shenzhen1/tuzhuangqianchuli";
import zongzhuangchuchengpinku from "./shenzhen1/zongzhuangchuchengpinku";
import xinzengdingdan from "./shenzhen1/xinzengdingdan";
import statistical from "./shenzhen1/statistical";

import getDateTime from "../js/utils";

export default {
  components: {
    zhitonglv,
    hpv,
    lizhichuqin,
    hanjierixiaxian,
    tuzhuangqianchuli,
    zongzhuangchuchengpinku,
    xinzengdingdan,
    statistical,
  },
  name: "shenzhen1",
  data() {
    return {
      times: "",
      timeSetInt: null,
      daysweek: "",
    };
  },
  mounted() {
    // this.timeSetInt = setInterval(() => {
    //   this.$router.push("/shenzhen2");
    // }, 10000);
  },
  created() {
    setInterval(() => {
      let t = new Date();
      this.daysweek = getDateTime.timeWeekFormat(t, 0);
      this.times = getDateTime.timeWeekFormat(t, 1);
    }, 1000);
  },
  beforeDestroy() {
    clearInterval(this.timeSetInt);
  },
  methods: {},
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less">
body {
  background-image: url("../assets/img/bg.jpg");
  // background-position: 0 0;
  // background-repeat: repeat-x;
}
.head {
  padding-left: 10px;
  height: 100px;
  display: flex;
  width: 100%;
  background: url("../assets/img/bg-header-middle.png") no-repeat;
  justify-content: space-between;
  background-position: center;
  //background-repeat: repeat-x;
  h1 {
    margin-top: 15px;
    text-align: center;
    font-size: 22px;
    strong {
      margin-top: 12px;
      display: block;
      text-align: center;
      font-size: 34px;
      line-height: 28px;
    }
    padding-left: 0.625rem /* 10/16 */;
  }
  .lft {
    background-image: url("../assets/img/bg-header-left.png");
    line-height: 24px;
    width: 15.75rem /* 252/16 */;
    height: 72px;
  }
  .lft span {
    padding-left: 10px;
  }
  .lft .sp1 {
    font-size: 10px;
  }
  .lft .sp2 {
    font-size: 14px;
  }
  .rgt {
    background-image: url("../assets/img/bg-header-right.png");
    line-height: 48px;
    width: 15.75rem /* 252/16 */;
    height: 72px;
  }
  .rgt span {
    font-size: 20px;
    margin-left: 138px;
  }
}
#data-view {
  width: 100%;
  height: 100%;
  background-color: #030409;
  color: #fff;
  #dv-full-screen-container {
    display: flex;
    left: 4px;
    flex-direction: column;
  }
  .content {
    position: relative;
  }
  .liftcontent {
    min-width: 25%;
    height: auto;
    float: left;
    padding-left: 20px /* 10/16 */;
  }
  .liftcontent .zhitonglv {
    height: 14.0625rem /* 225/16 */
  }
  .liftcontent .hpv {
    padding-top: 3.625rem /* 10/16 */;
    height: 21.875rem; /* 350/16 */
  }
  .liftcontent .lizhichuqin {
    padding-top: 3.625rem /* 10/16 */;
    height: 21.875rem; /* 350/16 */
  }

  .middlecontent {
    margin-left: 27%;
    margin-right: 27%;
    vertical-align: middle;
    position: relative;
  }
  .middlecontent .statistical {
    width: 100%;
    min-height: 60%;
    position: absolute;
  }
  .middlecontent .xinzengdingdan {
    width: 100%;
    margin-top: 51rem /* 800/16 */;
    height: 21.875rem; /* 350/16 */
    padding-left: 5px;
    position: absolute;
  }

  .rightcontent {
    min-width: 25%;
    float: right;
    margin-right: 12px /* 3/16 */;
  }
  .rightcontent .hanjierixiaxian {
    height: 21.875rem; /* 350/16 */
  }
  .rightcontent .tuzhuangqianchuli {
    padding-top: 3.625rem /* 10/16 */;
    height: 21.875rem; /* 350/16 */
  }
  .rightcontent .zongzhuangchuchengpinku {
    padding-top: 3.625rem /* 10/16 */;
    height: 21.875rem; /* 350/16 */
  }
}
</style>
